<template>
    <div>
        <div>{{ msg }}</div>
        <button @click="changeSome">dianwo</button>
    </div>
</template>

<script>
import Vue from 'vue'
export default {
    data(){
        return{
            msg: 'vue'
        }
    },
    methods:{
        changeSome(){
            this.msg = 'hello'
            this.$nextTick(function () {
                // DOM 更新了
                console.log('nextTick')
                console.log(this.$el.textContent)
            })
        }
    },
   
}
</script>

<style>

</style>
